<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
        <script type="text/javascript" src="../angular.min.js"></script>
        <script type="text/javascript" src="http://cdn.bootcss.com/angular.js/1.4.0-beta.6/angular-sanitize.min.js"></script>
    </head>
    <body>
      <div ng-app="myApp">

          <div ng-controller="firstController">
                <div ng-click="run()">点击</div>

              <div ng-bind="text"></div>

              <div ng-bind-template="{{text}} {{name}}"></div>

              <div ng-bind-html="text2"></div>
          </div>
      </div>
      <script type="text/javascript">
          var app = angular.module("myApp", ['ngSanitize']);
          app.controller('firstController',function($scope){
                $scope.text='phonegap中文网';

                $scope.name='中文网';
                $scope.text2='<h2>这是h2</h2>';

                  $scope.run=function(){

                      alert('run');
                      console.log('run');
                  }
          });
      </script>
       
    </body>
</html>